﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200027B RID: 635
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueNousValueInfo : IMessage<ChessRogueNousValueInfo>, IMessage, IEquatable<ChessRogueNousValueInfo>, IDeepCloneable<ChessRogueNousValueInfo>, IBufferMessage
	{
		// Token: 0x1700084F RID: 2127
		// (get) Token: 0x06001C7D RID: 7293 RVA: 0x00051930 File Offset: 0x0004FB30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueNousValueInfo> Parser
		{
			get
			{
				return ChessRogueNousValueInfo._parser;
			}
		}

		// Token: 0x17000850 RID: 2128
		// (get) Token: 0x06001C7E RID: 7294 RVA: 0x00051937 File Offset: 0x0004FB37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueNousValueInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000851 RID: 2129
		// (get) Token: 0x06001C7F RID: 7295 RVA: 0x00051949 File Offset: 0x0004FB49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueNousValueInfo.Descriptor;
			}
		}

		// Token: 0x06001C80 RID: 7296 RVA: 0x00051950 File Offset: 0x0004FB50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousValueInfo()
		{
		}

		// Token: 0x06001C81 RID: 7297 RVA: 0x00051958 File Offset: 0x0004FB58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousValueInfo(ChessRogueNousValueInfo other) : this()
		{
			this.nousValue_ = other.nousValue_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001C82 RID: 7298 RVA: 0x0005197D File Offset: 0x0004FB7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousValueInfo Clone()
		{
			return new ChessRogueNousValueInfo(this);
		}

		// Token: 0x17000852 RID: 2130
		// (get) Token: 0x06001C83 RID: 7299 RVA: 0x00051985 File Offset: 0x0004FB85
		// (set) Token: 0x06001C84 RID: 7300 RVA: 0x0005198D File Offset: 0x0004FB8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int NousValue
		{
			get
			{
				return this.nousValue_;
			}
			set
			{
				this.nousValue_ = value;
			}
		}

		// Token: 0x06001C85 RID: 7301 RVA: 0x00051996 File Offset: 0x0004FB96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueNousValueInfo);
		}

		// Token: 0x06001C86 RID: 7302 RVA: 0x000519A4 File Offset: 0x0004FBA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueNousValueInfo other)
		{
			return other != null && (other == this || (this.NousValue == other.NousValue && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001C87 RID: 7303 RVA: 0x000519D4 File Offset: 0x0004FBD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NousValue != 0)
			{
				num ^= this.NousValue.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001C88 RID: 7304 RVA: 0x00051A13 File Offset: 0x0004FC13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001C89 RID: 7305 RVA: 0x00051A1B File Offset: 0x0004FC1B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001C8A RID: 7306 RVA: 0x00051A24 File Offset: 0x0004FC24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.NousValue != 0)
			{
				output.WriteRawTag(64);
				output.WriteInt32(this.NousValue);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001C8B RID: 7307 RVA: 0x00051A58 File Offset: 0x0004FC58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NousValue != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.NousValue);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001C8C RID: 7308 RVA: 0x00051A96 File Offset: 0x0004FC96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueNousValueInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NousValue != 0)
			{
				this.NousValue = other.NousValue;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001C8D RID: 7309 RVA: 0x00051AC7 File Offset: 0x0004FCC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001C8E RID: 7310 RVA: 0x00051AD0 File Offset: 0x0004FCD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.NousValue = input.ReadInt32();
				}
			}
		}

		// Token: 0x04000BD4 RID: 3028
		private static readonly MessageParser<ChessRogueNousValueInfo> _parser = new MessageParser<ChessRogueNousValueInfo>(() => new ChessRogueNousValueInfo());

		// Token: 0x04000BD5 RID: 3029
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000BD6 RID: 3030
		public const int NousValueFieldNumber = 8;

		// Token: 0x04000BD7 RID: 3031
		private int nousValue_;
	}
}
